package cate.common.table.activity.battleroyale.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.battleroyale.row.BattleRoyaleLevelRow;

public class BattleRoyaleLevelSheet extends ESheet<BattleRoyaleLevelRow> {
    @Override
    public String getSheetName() {
        return "关卡";
    }

    public BattleRoyaleLevelRow getLevelRow(int group, int chapter, int level){
        for(BattleRoyaleLevelRow row : getList()){
            if(row.group != group){
                continue;
            }
            if(row.chapter == chapter && row.level == level){
                return row;
            }
            if(row.chapter > chapter){
                break;
            }
        }
        return null;
    }
}
